home *** CD-ROM | disk | FTP | other *** search
/ Aminet 52 / Aminet 52 (2002)(GTI - Schatztruhe)[!][Dec 2002].iso / Aminet / comm / irc / epic4-mos.lha / share / epic / help / 6_functions / count < prev    next >
Encoding:
Text File  |  2001-03-22  |  508 b   |  20 lines

  1. Synopsis:
  2.    $count(<string> <text>)
  3.  
  4. Technical:
  5.    This function counts how many times <string> appears in the text specified
  6.    by <text>, possibly overlapping. 
  7.  
  8. Practical:
  9.    The uses for a function like this are unlimited.  One may be to count how
  10.    many times a person's nick appears in a public message, for logging
  11.    purposes.
  12.  
  13. Returns:
  14.    number of times <string> is found in <text>
  15.  
  16. Examples:
  17.    $count(. one.two.three)          returns 2
  18.    $count(zz zzzz)                  returns 3
  19.  
  20.